/*********************************************************************
	filename:	DaterUserMessageCreator.cpp
	created:	12/5/2012
	author:		4Ys
	
	purpose:	Implement the UserMessageCeator class.
*********************************************************************/
#include "DaterUserMessageCreator.h"
#include <string>

namespace Dater
{
	std::string UserMessageCreator::getLoginMessage(const std::string& account, const std::string& password)
	{
		std::string result;
		result = "1\b" + account + "\b" + password;
		return result;
	}

	std::string UserMessageCreator::getSignUpMessage(const std::string& email, const std::string& account, const std::string& password,
			const std::string& hypocorism, const std::string& gender, const std::string& birthday)
	{
		std::string result;
		result = "2\b" + email + "\b" + account + "\b" + password + "\b" + hypocorism + "\b" + gender + "\b" + birthday;
		return result;
	}

	std::string UserMessageCreator::getSearchMessage(const std::string& hypocorism)
	{
		std::string result;
		result = "4\b0\b" + hypocorism;
		return result;
	}
}